<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.Log_into_dao"%>
<%@page import="javaBean.Log_into_javaBean"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <link rel="stylesheet" type="text/css" href="infoCSS.css"/>
  </head>
  

   <body>
	    <div>
		<table cellspacing="10">
		    <tr>
		       <th colspan="2"><a href="user_insert.jsp">添加用户 </a></th>
		    </tr>
			<tr>
				<th>学号</th><th>密码</th><th>操作</th><th>操作</th>
			</tr>
			<%	
	request.setCharacterEncoding("utf-8");
	Log_into_dao ld = new Log_into_dao();
	Collection v = ld.getAll();
	Iterator it = v.iterator();
	
	while( it.hasNext() ){Log_into_javaBean rs =(Log_into_javaBean)it.next(); %>		
		<tr> 
	      <td ><%=rs.getId()%></td>
	      <td ><%=rs.getPassword()%></td>
	      <td><a href="user_update.jsp?id=<%=rs.getId()%>">修改</a></td>
	      <td><a href="Log_into_servlet?op=delete&id=<%=rs.getId()%>">删除</a></td>
	    </tr>			
	<%	}%>

		</table>
		</div>
  </body>
</html>
